import request from '../service'

export const login = () => {
  return request.post('api/auth/login', {
    account: 'admin',
    password: '11111111',
  })
}

export const userList = (data) => {
  return request.post('/api/role/list', data)
}

export const userDel = (id) => {
  return request.post('/api/role/delete', { id })
}

export const userUpdate = (data) => {
  return request.post('/api/role/update', data)
}

export const userAdd = (data) => {
  return request.post('/api/role/add', data)
}